package com.sensitive.words.service;


import com.sensitive.words.model.SensitiveWordResult;
import com.sensitive.words.model.SensitiveWords;

import java.util.Collection;
import java.util.List;

public interface SensitiveWordService {

    // 添加一个敏感词
    void addSensitiveWord(String word);

    // 在给定文本中查找敏感词
    List<SensitiveWordResult> findSensitiveWords(String text);

    // 删除一个敏感词
    void removeSensitiveWord(String word);
}
